
package com.feib.soeasy.service;

import java.util.Date;

import org.junit.BeforeClass;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

import com.feib.soeasy.model.FormatDefinition;
import com.feib.soeasy.model.Group;
import com.feib.soeasy.model.Payment;


/**
 * @title (#)Soez5002ServiceTester.java<br>
 * @description <br>
 * @author Jimmy Liu<br>
 * @version 1.0.0 2010/11/25
 * @copyright Far Eastern International Bank Copyright (c) 2010<br>
 * @2011/3/13 create by Jimmy Liu<br>
 */
public class Soez5002ServiceTester {
    private static ApplicationContext context;
    
    private static Soez5002Service soez5002Service;
    
    private static Soez5003Service soez5003Service;
    
    private static Soez5001Service soez5001Service;
    
    protected Logger logger = LoggerFactory.getLogger(this.getClass());
    
    @BeforeClass
    public static void runBeforeClass()
    {
        context = new FileSystemXmlApplicationContext(new String[] {
                        "classpath:applicationContext-config.xml"
                        , "classpath:applicationContext-dao.xml"
                        , "classpath:applicationContext-hibernate.xml"
                        , "classpath:applicationContext-job.xml"
        });
        
        soez5002Service = (Soez5002Service)context.getBean("soez5002Service");
        soez5003Service = (Soez5003Service)context.getBean("soez5003Service");
    }

    //@Test
    public void a()
    {
        Payment payment = new Payment();
        FormatDefinition formatDefinition = null;
        Date payDueFrom = null;
        Date payDueTo = null;
        Date writeOffDateFrom = null;
        Date writeOffDateTo = null;
        //soez5002Service.doExportXls(payment, formatDefinition, payDueFrom, payDueTo, writeOffDateFrom, writeOffDateTo);
    }

    @Test
    public void b() throws Exception
    {
        Group group = new Group();
        group.setGroupNo("360798880001");
        Integer qryType = new Integer(1);
        Date dateFrom = new Date("2010/12/01");
        Date dateTo = new Date("2011/04/01");
        soez5003Service.doExportStatisticsXls(group, qryType, dateFrom, dateTo);
    }

}
